package site.isscloud.project.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备通道对象
 */
public class DeviceChannel {
    private static final long serialVersionUID = 1L;

    /** 设备编号 */
    private String deviceNo;

    /** 通道号 */
    private Integer channelNo;

    private Integer startMeter;

    private Integer endMeter;

    public Integer getStartMeter() {
        return startMeter;
    }

    public void setStartMeter(Integer startMeter) {
        this.startMeter = startMeter;
    }

    public Integer getEndMeter() {
        return endMeter;
    }

    public void setEndMeter(Integer endMeter) {
        this.endMeter = endMeter;
    }

    public String getDeviceNo() {
        return deviceNo;
    }

    public void setDeviceNo(String deviceNo) {
        this.deviceNo = deviceNo;
    }

    public Integer getChannelNo() {
        return channelNo;
    }

    public void setChannelNo(Integer channelNo) {
        this.channelNo = channelNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("deviceNo", getDeviceNo())
                .append("channelNo", getChannelNo())
                .append("startMeter", getStartMeter())
                .append("endMeter", getEndMeter())
                .toString();
    }
}